package com.aysf.drafter.service.impl;

import com.aysf.drafter.entity.CustomerCheckIn;
import com.aysf.drafter.entity.Result;
import com.aysf.drafter.mapper.CustomerCheckInMapper;
import com.aysf.drafter.service.ICustomerCheckInService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author MaoZz
 * @since 2024-12-21 17:18:45
 */
@Service
public class CustomerCheckInServiceImpl extends ServiceImpl<CustomerCheckInMapper, CustomerCheckIn> implements ICustomerCheckInService {

    @Autowired
    private CustomerCheckInMapper customerCheckInMapper;


    @Override
    public Result saves(CustomerCheckIn customerCheckIn) {
        int insert = customerCheckInMapper.insert(customerCheckIn);
        if(insert!=0){
            return new Result("success");
        }
        else return new Result("error");


    }



}
